package cn.gson.crmdemo.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.crmdemo.model.dao.CaigoumxDao;
import cn.gson.crmdemo.model.mapper.CaigoumxMapper;
import cn.gson.crmdemo.model.pojo.Purchase;

@Service
@Transactional(rollbackFor=Exception.class)
public class CaigoumxService {
	@Autowired
	CaigoumxDao mx;
	@Autowired 
	CaigoumxMapper Mx1;
	/*
	 * 查询采购单
	 */
	public JSONArray selectPurchase() {
		return Mx1.selectPurchase();
	}
	
}

